package com.atguigu.yygh.enums;

import lombok.Data;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2025/3/6 1:52
 */

public enum ResultEnum {
    SUCCESS(20000,"成功"),
    ERROR(20001,"失败");
    private Integer code;
    private String message;
    ResultEnum(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
